package de.klingbeil.hhc.client.controller;

import com.google.inject.Inject;

import de.klingbeil.hhc.client.view.EditorView;
import de.klingbeil.hhc.client.view.View;

public class ApplicationEditorController implements Controller {

	private final ApplicationEditorView view;

	public interface ApplicationEditorView extends EditorView {
	}

	@Inject
	public ApplicationEditorController(ApplicationEditorView view,
			ItemEditorController itemController) {
		this.view = view;
		view.setContent(itemController.getView().getWidget());
	}

	@Override
	public View getView() {
		return view;
	}
}
